﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Mapa.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <div><a href="<%= ResolveUrl("~") %>Mapa/">Regresar</a></div>
    <iframe src="" style="width: 100%; height: 100%"></iframe>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
    <script type="text/javascript">
        $(function () {
            $('iframe').attr('src', 'http://186.69.160.50:8080/kamap/index2.html?lon=' + getURLParameter("lon") +
                '&lat=' + getURLParameter("lat") + '&nom=' + getURLParameter("nom") +
                '&pla=' + getURLParameter("pla") + '&vel=' + getURLParameter("vel") +
                '&fch=' + getURLParameter("fch") + '');
        });

		function getURLParameter(name) {
			return unescape(
				(RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]
			);
		}
    </script>
</asp:Content>
